<template>
  <div class="header-container">
    {{title}}
  </div>
</template>

<script>
export default {
  props: {
    //声明title自定义属性，允许使用者自定义标题内容
    title: {
      default: '',
      type: String
    }
  }
}
</script>

<style lang="less" scoped>
.header-container {
  background-color: #679bbd;
  color: white;
  height: 45px;
  font-size: 12px;
  width: 100%;
  text-align: center;
  line-height: 45px;
}

</style>